import 'package:json_annotation/json_annotation.dart';
import 'package:casdon/modules/device/data/api/auth_result_model.dart';

part 'auth_login_with_third_user_info_api.g.dart';

@JsonSerializable()
class AuthLoginWithThirdUserInfoModel {
  @JsonKey(name: 'code')
  final int code;

  @JsonKey(name: 'message')
  final String? message;

  @JsonKey(name: 'requestId')
  final String? requestId;

  @JsonKey(name: 'success')
  final bool success;

  @JsonKey(name: 'result')
  final AuthResultModel? result;

  @JsonKey(name: 'dataObj')
  final Map<String, dynamic>? dataObj;

  factory AuthLoginWithThirdUserInfoModel.fromJson(Map<String, dynamic> json) =>
      _$AuthLoginWithThirdUserInfoModelFromJson(json);

  Map<String, dynamic> toJson() => _$AuthLoginWithThirdUserInfoModelToJson(this);

  AuthLoginWithThirdUserInfoModel({
    required this.code,
    this.message,
    this.requestId,
    required this.success,
    this.result,
    this.dataObj,
  });
}

